﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EBA.Localization;

namespace EBA.Reporting.Spreadsheet
{
    /// <summary>
    /// 描述工作表名称已经存在。
    /// </summary>
    [Serializable]
    public class DuplicatedWorksheetNameException : Exception
    {
        public DuplicatedWorksheetNameException() { }
        public DuplicatedWorksheetNameException(string name) : base("The worksheet[{0}] is duplicated in this workbook.".T(name)) { }
        public DuplicatedWorksheetNameException(string message, Exception inner) : base(message, inner) { }
        protected DuplicatedWorksheetNameException(
          System.Runtime.Serialization.SerializationInfo info,
          System.Runtime.Serialization.StreamingContext context)
            : base(info, context) { }
    }
}
